package com.wyl.selenium.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Description
 * @Author WuYiLong
 * @Date 2023/11/13 16:48
 */
@Data
@ApiModel(value = "分页")
public class CommonPage<T> {
    @ApiModelProperty(value = "当前页")
    private Integer currentPage = 1;
    @ApiModelProperty(value = "页数")
    private Integer pageSize = 10;
    @ApiModelProperty(value = "总量")
    private Long total;
    @ApiModelProperty(value = "列表")
    private T list;

    public CommonPage(){};
    public CommonPage(Integer currentPage,Integer pageSize) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }
    public CommonPage(Integer currentPage,Integer pageSize,Long total) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.total = total;
    }
}
